package cn.endowment.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 结果模型
 * @author Administrator
 *
 * @param <T>
 */
public class ResultModel<T> {
	/**
	 * 业务代码
	 */
	private int code;
	/**
	 * 业务消息
	 */
	private String msg = "";
	/**
	 * 业务数据
	 */
	@JsonInclude(value = Include.NON_NULL)
	private T data;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
